package com.demo.shiro.service;

import com.demo.shiro.model.UserInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Jmy
 * @date 2019/7/26 19:06
 * @email jiaomingyu5778@gmail.com
 */
@Service
public interface MyService<T> {

    Long getSequence(@Param("seqName") String seqName);

    List<T> selectAll();

    T selectByKey(Object key);

    int inset(T entity);

    int save(T entity);

    int delete(Object key);

    int updateAll(T entity);

    int updateNotNull(T entity);

    List<T> selectByExample(Object example);

}